package grailsworkshop2012_1_f

class User {
    String name
    String login
    String password
    
    static hasMany = [trips : Trip]
    
    static constraints = {
        name blank: false, size: 3..15
        login blank: false, size: 3..15
        password blank: false, size: 6..15
    }
    
    String toString() {
        "${name}"
    }
}

